package com.lingyu.pojo;

import java.util.Date;

public class Prasie {
    private String praiseId;

    private Topic topic;

    private User user;

    private Date praiseTime;
    
    public Prasie(){}
    public Prasie(String topicId, int userId) {
		this.topic = new Topic(topicId);
		this.user = new User(userId);
	}


	public String getPraiseId() {
        return praiseId;
    }

    public void setPraiseId(String praiseId) {
        this.praiseId = praiseId;
    }

    
    public Topic getTopic() {
		return topic;
	}

	public void setTopic(Topic topic) {
		this.topic = topic;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getPraiseTime() {
        return praiseTime;
    }

    public void setPraiseTime(Date praiseTime) {
        this.praiseTime = praiseTime;
    }
	@Override
	public String toString() {
		return "Prasie [praiseId=" + praiseId + ", topic=" + topic + ", user=" + user + ", praiseTime=" + praiseTime
				+ "]";
	}
    
    
}